import { defHttp } from 'fe-ent-core/es/utils';
import type { DemoOptionsItem, selectParams } from '../model/options-model';
enum Api {
  OPTIONS_LIST = '/select/getDemoOptions',
}

/**
 * @description: Get sample options value
 */
export const optionsListApi = (params?: selectParams) =>
  defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST, params });
